<?php
class lfJquery
{

	function __construct()
	{
	
	}

	function __destruct()
	{
		$this->scriptString .= ";";
		$jsonCommand = json_encode(array(
			"type" => "1", "data" => $this->scriptString
		));
		echo $jsonCommand;
	}

	function InitSelector($selectString)
	{
		if (! empty($this->scriptString))
		{
			$this->scriptString .= ';';
		}
		$this->scriptString .= '$(' . "'" . $selectString . "'" . ')';
	}

	function Html($html)
	{
		$this->scriptString .= '.html(' . "'" . $html . "'" . ')';
	}

	function Val($val)
	{
		$this->scriptString .= '.val(' . "'" . $val . "'" . ')';
	}
	
	private $scriptString;
}
//class lfJquery
//{
//
//	function __construct()
//	{
//	
//	}
//
//	function __destruct()
//	{
//		$this->scriptString .= ";";
//		$jsonCommand = json_encode(array(
//			"type" => "1", "data" => $this->scriptString
//		));
//		echo $jsonCommand;
//	}
//
//	function InitSelector($selectString)
//	{
//		if (! empty($this->scriptString))
//		{
//			$this->scriptString .= ';';
//		}
//		$this->scriptString .= '$(' . "'" . $selectString . "'" . ')';
//	}
//
//	function Html($html)
//	{
//		$this->scriptString .= '.html(' . "'" . $html . "'" . ')';
//	}
//
//	function Val($val)
//	{
//		$this->scriptString .= '.val(' . "'" . $val . "'" . ')';
//	}
//	
//	private $scriptString;
//}

?>